<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
	<th:block th:include="include/include :: header('字典类型列表')" />
</head>
<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 search-collapse">
				<form id="type-form">
					<div class="select-list">
						<ul>
							<li>
								字典名称：<input type="text" name="description"/>
							</li>
							<li>
								字典编码：<input type="text" name="type"/>
							</li>
							<li>
								字典类型：<select name="systemFlag" th:with="type=${@dict.getType('dict_type')}">
									<option value="">所有</option>
									<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
								</select>
							</li>
							<li>
								<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							    <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
							</li>
						</ul>
					</div>
				</form>
			</div>
			
	       <div class="btn-group-sm" id="toolbar" role="group">
	            <a class="btn btn-success" onclick="$.operate.add()" sec:authorize="hasAuthority('sys_dict_add')">
	                <i class="fa fa-plus"></i> 新增
	            </a>
	        </div>
	        
	        <div class="col-sm-12 select-table table-striped">
			    <table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
	<th:block th:include="include/include :: footer" />
	<script th:inline="javascript">
		var editFlag = [[${@permission.hasPermi('sys_dict_edit')}]];
		var deleteFlag = [[${@permission.hasPermi('sys_dict_del')}]];
		var datas = [[${@dict.getType('dict_type')}]];
	</script>
	<script th:src="@{/pages/sysadm/dict/dictList.js}"></script>
</body>
</html>